#ifndef TRANSFERPROGRESS_H
#define TRANSFERPROGRESS_H

#include <QWidget>

namespace Ui {
    class TransferProgress;
}

class TransferProgress : public QWidget {
    Q_OBJECT
public:
    TransferProgress(QWidget *parent = 0);
    ~TransferProgress();

	void setFileName(const QString& fileName);
	void setFileSize(long long fileSize);
	void setTransferredSize(long long transferredSize);
private slots:
	void updateSpeed();
protected:
    void changeEvent(QEvent *e);

private:
    Ui::TransferProgress *ui;
	long long m_FileSize;
	long long m_TransferredSize;
	long long m_LastTransferredSize;
};

#endif // TRANSFERPROGRESS_H
